package chixing.day07.work;

public class EmployeeTest {
    public static void main(String[] args) {
        MyEmployee[] employees = new MyEmployee[4];

        employees[0] = new FullTimeEmployee( "张三",1001, 8000, 2000);
        employees[1] = new FullTimeEmployee("李四",1002,  9000, 3000);
        employees[2] = new PartTimeEmployee( "王五",2001, 2000, 80, 50);
        employees[3] = new SalesEmployee("赵六",3001,  5000, 100000, 0.05);

        System.out.println( "编号"+ "姓名"+ "工资");

        for (MyEmployee emp : employees) {
            System.out.println(emp.getEmpNo()+ emp.getEmpName()+ emp.calculateSalary());
        }
    }
}
